﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace Camc.Quality.StoreManagement.StoragePut.Dto
{
   public class GetStoreContenListDto : PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public string StorePutNo { get; set; }
        /// <summary>
        /// 仓库名称Id
        /// </summary>
        public Guid StoreId { get; set; }
        /// <summary>
        /// 产品图号
        /// </summary>
        public string ProductDrawingNo { get; set; }
        /// <summary>
        /// 合格证号
        /// </summary>
        public string QualifiedNumber { get; set; }
        /// <summary>
        /// 任务编号
        /// </summary>
        public string TaskNumber { get; set; }
        /// <summary>
        /// 入库人
        /// </summary>
        public string PutStoreUser { get; set; }
        /// <summary>
        /// 储位ID
        /// </summary>
        public string BinLocationId { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
